<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>计算结果 - {php echo $this->module['config']['sname']}</title>
    {php echo register_jssdk();}
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
    <meta content="telephone=no" name="format-detection">
    <link href="{WELIAM_INDIANA_STATIC}css/common.css" rel="stylesheet">
    <link href="{WELIAM_INDIANA_STATIC}css/detail.css" rel="stylesheet">
    <script language="javascript" src="{WELIAM_INDIANA_STATIC}js/jquery.js"></script>
</head>
<body>
<div class="g-body">
	<div class="m-calc">
	<div class="m-simpleHeader" id="dvHeader">
	    <a href="javascript:history.back(-1);" data-pro="back" data-back="true" class="m-simpleHeader-back"><i class="ico-back"></i></a>
	    <h1>计算结果</h1>
	</div>
	    	<a class="m-calc-viewIntroBtn" href="javascript:void(0)" onclick="$('.pro-mask').show();$('.w-msgbox').show();">计算方式</a>
	    <div class="g-wrap">
		    <div class="m-calc-rule">
		        <h2>计算公式</h2>
		        <p>[( 数值A+数值B) ÷ 奖品所需人次 ] 取余数 + 1000001</p>
		    </div>
		    <div class="m-calc-A">
		    	<p class="m-calc-A-title">数值A</p>
		    	<p>= 截止该奖品开奖时间点前最后10条全站参与记录之和</p>
		    	<p>= <b class="txt-red">{$goods['numa']}</b></p>
		    	<a class="txt-blue btn m-calc-A-unfoldBtn" href="javascript:void(0)" onclick="$('.m-calc-A-unfoldBtn').hide();$('.m-calc-A-foldBtn').show();$('.m-calc-list').css('height','auto');">展开<i class="ico ico-sortArrow ico-sortArrow-down ico-sortArrow-gray"></i></a>
		    	<a class="txt-blue btn m-calc-A-foldBtn" style="display:none" href="javascript:void(0)" onclick="$('.m-calc-A-unfoldBtn').show();$('.m-calc-A-foldBtn').hide();$('.m-calc-list').css('height','0');">收起<i class="ico ico-sortArrow ico-sortArrow-up ico-sortArrow-gray"></i></a>
		    </div>
			<div class="m-calc-list">
			    <table class="m-calc-resultList" cellpadding="0" cellspacing="0">
			        <thead>
			            <tr>
			                <th class="time">夺宝时间</th>
			                <th class="user">用户帐号</th>
			            </tr>
			        </thead>
			        <tbody>
                        {loop $arecord $list}
			                <tr class="calcRow">
			                    <td class="time">{php echo date('Y-m-d H:i:s', $list['createtime'])}   <i class="ico ico-arrow-transfer"></i> <b class="txt-red">{php echo date('YmdHis', $list['createtime'])}</b></td>
			                    <td class="user"><div class="f-breakword"><a class="goUserPage" data-uid="11250559" title="" href="javascript:void(0)">{$list['nickname']}</a></div></td>
			                </tr>
						{/loop}
			        </tbody>
			    </table>
			</div>
		    <div class="m-calc-B">
		    	<p class="m-calc-B-title">数值B</p>
				<p>= 最近一期中国福利彩票“老时时彩”的开奖结果</p>
				<p>= <b class="txt-red">{$goods['numb']}</b> (第{$goods['periods']}期)　<a href="http://caipiao.163.com/award/cqssc/" target="_blank">开奖查询</a></p>
		    </div>
		    
			<div class="m-calc-result">
				<p class="m-calc-result-title">计算结果</p>
				<p class="m-calc-result-code">幸运号码：<b class="txt-red">{$goods['wincode']}</b></p>
			</div>
	    </div>
	</div>
</div>
<div class="pro-mask" id="pro-view-7" style="display: none;"></div>
<div class="w-msgbox" id="pro-view-5" style="left: 14px; top: 10%; display: none;">
	<div data-pro="close" class="w-msgbox-close" onclick="$('.pro-mask').hide();$('.w-msgbox').hide();">×</div>
	<div class="w-msgbox-bd"><h3 class="w-msgbox-title"></h3>
		<div style="font-size: 12px;">
			<p style="font-size: 13px; margin-bottom: 10px; font-weight: bold;">幸运号码计算方式：</p>
			<p style="margin-bottom: 10px;"><b>1.</b> 奖品的最后一个号码分配完毕后，将公示该分配时间点前本站全部奖品的最后10个参与时间；</p>
			<p style="margin-bottom: 10px;"><b>2.</b> 将这10个时间的时间戳数值进行求和（得出数值A）（每个时间按国际标准时间计数器时间戳进行顺序组合）；</p>
			<p style="margin-bottom: 10px;"><b>3.</b> 为保证公平公正公开，系统还会等待一小段时间，取最近下一期中国福利彩票“老时时彩”的开奖结果（一个五位数值B）；</p>
			<p style="margin-bottom: 10px;"><b>4.</b> （数值A+数值B）除以该奖品总需人次得到的余数 + 原始数&nbsp;1000001，得到最终幸运号码，拥有该幸运号码者，直接获得该奖品。</p>
		</div>
	</div>
	<div data-pro="footer" class="w-msgbox-ft w-msgbox-ft-1" onclick="$('.pro-mask').hide();$('.w-msgbox').hide();"><button class="pro-btn" type="button" id="pro-view-6"><span>确定</span></button></div>
</div>
</body>
<script>
	wx.ready(function (){
	var shareData = {
		title: "{$share_data['share_title']}",
		desc: "{$share_data['share_desc']}",
		link: "{$_W['siteroot']}app/{php echo str_replace('./','',$this->createMobileUrl('mshare', array('op'=>'invite', 'sopenid'=>$_W['openid'])))}",
		imgUrl: "{$_W['attachurl']}{$share_data['share_image']}",
	};
//分享朋友
	wx.onMenuShareAppMessage({
	    title: shareData.title,
	  	desc: shareData.desc,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});
//朋友圈
	wx.onMenuShareTimeline({
	  	title: shareData.title,
	  	link: shareData.link,
	  	imgUrl:shareData.imgUrl,
	  	trigger: function (res) {
	  	},
	  	success: function (res) {
	    	window.location.href =adurl;
	  	},
	  	cancel: function (res) {
	  	},
	  	fail: function (res) {
	    	alert(JSON.stringify(res));
	  	}
	});
});
</script>
</html>